package com.design.organization;

import java.util.ArrayList;
import java.util.List;

public class University extends OrganizationComponent{



    public University(String name, String des) {
        super(name, des);
    }

    @Override
    protected void print() {
        System.out.println("------------------------------"+getName()+"----"+organizationComponents.size()+"--------------------------------------");
        //organizationComponents.stream().forEach(organizationComponent -> organizationComponent.print());
        organizationComponents.forEach(x->{
            System.out.println(x.getName()+"---"+x.getDes());;
        });
    }


}
